::文件： bat模板
::版权： Copyright 谢振斌 All Rights Reserved.  
::作者： 谢振斌  
::时间： 2021-3-30 

:: 用途：

:: 在bat里有隐藏窗口的命令，很简单，只需要在代码头部加@echo off代码就可以了。 
@echo off
:: 调用设置当前前端口为utf-8 的编码格式函数
call:setDosCodingFormatUTF8

:: echo.开始调用函数 >> debug.log  | TYPE debug.log

:: 获取当前脚本名字
::    获取当前批处理文件的全路径
set filePath=%~f0

for %%a in ("%filepath%") do (
    set str=%%~pda
    :: 文件名赋值
    set var=%%~nxa
)
::echo 路径：%str%
::echo 文件名：%var%
::pause

:: 日志文件名
::set logFileName=Template
set logFileName=%var%

rem set flag="Test"
set flag="Run"
:: echo flag=%flag% 
if %flag% == "Run" (
    echo. 执行流程控制函数
    call:processControlMain >> %logFileName%.log
    ) ELSE (
    echo. 执行测试函数 
    ::call:myDosFunc  >> debug.log
    rem echo. [debug] 测试 - setSystemEnvValue==
    rem call:setSystemEnvValue  >> debug.log

    echo. [debug] 测试 - setUserEnvValue==
    set namesssx=xxxxx
    set pathvaluesss=xxxxx
    echo. [debug] 测试 - name==
    echo. %namesssx%
    echo. [debug] 测试 - pathvalue==
    echo. %pathvaluesss%
    call:setUserEnvValue  %namesssx%  %pathvaluesss% >> debug.log
    rem call:setUserEnvValue  %namesssx%  %pathvaluesss% >> debug.log | TYPE debug.log
    rem echo. [debug] 测试 - processControlMain==
    ::call:processControlMain >> debug.log
    :: call:processControlMain >> debug.log  | TYPE debug.log
    :: 注：加重定向输出>> debug.log  | TYPE debug.log 有时会报错
    :: 窗口暂停
    pause
    )

::--------------------------------------------------------
::-- 函数部分开始
::--------------------------------------------------------
:: 函数:
:myDosFunc    - here starts my function identified by it`s label
    echo. [INFO] here the myDosFunc function is executing a group of commands
    echo. [INFO] it could do a lot of things
goto:eof

:: 函数: 设置当前前端口为utf-8 的编码格式
:setDosCodingFormatUTF8    - 设置当前前端口为utf-8 的编码格式
    :: 设置当前前端口为utf-8 的编码格式
    chcp 65001
goto:eof

:: 函数: 设置文件链接
:makeFileLinkFunc
    echo. [INFO] makeFileLinFunc === Start ===
    echo. [INFO] makeFileLinFunc === 1 2 ===
    echo. [Debug] %1
    echo. [Debug] %2

    echo. [INFO] makeFileLinFunc === TargetFilePath OriginFilePath ===
    echo. [INFO] %TargetFilePath%
    echo. [INFO] %OriginFilePath%

    echo. [INFO] makeFileLinFunc === LocalOriginFilePath LocalTargetFilePath ===
    set LocalOriginFilePath=%1
    set LocalTargetFilePath=%2
    echo. [Debug] %LocalTargetFilePath%
    echo. [Debug] %LocalOriginFilePath%
    set OldFileName=%LocalTargetFilePath%
    rem set NewFolderName=%LocalTargetFolderPath%-%date:~3,4%-%date:~8,2%-%date:~11,2%-%time:~0,2%-%time:~3,2%-%time:~6,2%
    set NewFileName=%LocalTargetFilePath%-%date:~3,4%%date:~8,2%%date:~11,2%%time:~0,2%%time:~3,2%%time:~6,2%
    if exist %LocalTargetFilePath% (
        echo. [INFO] 已经存在文件
        echo. [INFO] makeFileLinkFunc === OldFileName ===
        echo. [Debug]%OldFileName%
        echo. [INFO] makeFileLinkFunc === NewFileName ===
        echo. [Debug] %NewFileName%
        echo. [INFO] 重命名文件
        ren %OldFileName% %NewFileName%
        if %ERRORLEVEL% EQU 0 (
            echo. [SUCCESS] 重命名文件成功。
        ) else (
            echo. [FAIL] 重命名文件失败。
            echo. [INFO] 使用rmdir删除软链接
            rmdir %OldFileName%
            if %ERRORLEVEL% EQU 0 (
                echo. [SUCCESS] 删除软链接文件成功。
            ) else (
                echo. [FAIL] 删除软链接文件失败。
            )
        )
    ) else (
        echo. [INFO] 不存在文件
        rem dir
    )
    echo. [INFO] 创建文件软链接 （需要使用超级管理员权限执行）
    mklink /H %LocalTargetFilePath% %LocalOriginFilePath%
    rem mklink /D %LocalTargetFilePath% %LocalOriginFilePath%
    if %ERRORLEVEL% EQU 0 (
        echo. [SUCCESS] 创建文件链接成功。
    ) else (
        echo. [FAIL] 创建文件链接失败。
    )
    echo. [INFO] makeFileLinFunc === End ===
goto:eof

:: 函数: 设置文件夹链接
:makeFolderLinkFunc
    echo. [INFO] makeFolderLinkFunc === Start ===
    echo. [INFO] makeFolderLinkFunc === 1 2 ===
    echo. [Debug] %1
    echo. [Debug] %2

    echo. [INFO] makeFolderLinkFunc === TargetFolderPath OriginFolderPath ===
    echo. [Debug] %TargetFolderPath%
    echo. [Debug] %OriginFolderPath%

    echo. [INFO] makeFolderLinkFunc === LocalOriginFolderPath LocalTargetFolderPath ===
    set LocalOriginFolderPath=%1
    set LocalTargetFolderPath=%2
    echo. [Debug] %LocalTargetFolderPath%
    echo. [Debug] %LocalOriginFolderPath%
    set OldFolderName=%LocalTargetFolderPath%
    rem set NewFolderName=%LocalTargetFolderPath%-%date:~3,4%-%date:~8,2%-%date:~11,2%-%time:~0,2%-%time:~3,2%-%time:~6,2%
    set NewFolderName=%LocalTargetFolderPath%-%date:~3,4%%date:~8,2%%date:~11,2%%time:~0,2%%time:~3,2%%time:~6,2%
    if exist %LocalTargetFolderPath% (
        echo. [INFO] 已经存在文件夹
        echo. [INFO] makeFolderLinkFunc === OldFolderName ===
        echo. [Debug]%OldFolderName%
        echo. [INFO] makeFolderLinkFunc === NewFolderName ===
        echo. [Debug] %NewFolderName%
        echo. [INFO] 重命名文件夹
        mv %OldFolderName% %NewFolderName%
        if %ERRORLEVEL% EQU 0 (
            echo. [SUCCESS] 重命名文件夹成功。
        ) else (
            echo. [FAIL] 重命名文件夹失败。
            echo. [INFO] 使用rmdir删除软链接
            rmdir %OldFileName%
            if %ERRORLEVEL% EQU 0 (
                echo. [SUCCESS] 删除软链接文件成功。
            ) else (
                echo. [FAIL] 删除软链接文件失败。
            )
        )
    ) else (
        echo. [INFO] 不存在文件夹
        rem dir
    )
    echo. [INFO] 创建文件夹软链接 （需要使用超级管理员权限执行）
    mklink /D %LocalTargetFolderPath% %LocalOriginFolderPath%
    if %ERRORLEVEL% EQU 0 (
        echo. [SUCCESS] 创建文件链接成功。
    ) else (
        echo. [FAIL] 创建文件链接失败。
    )
    echo. [INFO] makeFolderLinkFunc === End ===
goto:eof

:: 函数: 永久环境变量-用户变量
:setUserEnvValue    - setUserEnvValue
    echo. [INFO] setUserEnvValue === Start ===
    echo. [INFO] 永久环境变量-用户变量
    echo. [INFO] setUserEnvValue === LocalUserName ===
    set LocalUserName=%1
    echo. %LocalUserName%

    echo. [INFO] setUserEnvValue === LocalUserValue ===
    set LocalUserValue=%2
    echo. %LocalUserValue%

    echo. [Debug] 查看旧变量path
    echo. %PATH%
    rem echo. [INFO] 删除
    rem setx  %LocalUserName% ""
    echo. [INFO] 添加/修改
    setx %LocalUserName% %LocalUserValue%

    echo. [INFO] setUserEnvValue === End ===
goto:eof

:: 函数: 永久环境变量-用户变量Path
:setUserEnvPathValue    - setUserEnvPathValue
    echo. [INFO] setUserEnvPathValue === Start ===
    echo. [INFO] 永久环境变量-用户变量Path
    echo. [INFO] setUserEnvValue === LocalUserPathValue ===
    set LocalUserPathValue=%1
    echo. [INFO] setUserEnvValue === LocalUserValue ===
    echo. %LocalUserPathValue%
    echo. [INFO] === is path 
    echo. [INFO] 获取变量
    echo. [Debug] 查看旧变量path
    echo. %PATH%
    echo. [INFO] 修改变量path
    setx "path" "%path%;%%%LocalUserPathValue%%%;"
    echo. [Debug] 查看更改后的变量path
    echo. %PATH%
    echo. [INFO] setUserEnvPathValue === End ===
goto:eof

:: 函数: 永久环境变量-系统环境变量
:setSystemEnvValue    - setSystemEnvValue
    echo. [INFO] setSystemEnvValue === Start ===
    echo. [INFO] 永久环境变量-系统环境变量 
    echo. [Debug] %1
    echo. [Debug] %2
    echo. [INFO] setSystemEnvValue === LocalSystemName ===
    set LocalSystemName=%1
    echo. %LocalSystemName%
    echo. [INFO] setSystemEnvValue === LocalSystemValue ===
    set LocalSystemValue=%2
    echo. %LocalSystemValue%

    echo. [INFO] 获取变量
    echo. [Debug] 查看旧变量
    wmic ENVIRONMENT where "name='%LocalSystemName%'" get UserName,VariableValue
    echo. [INFO] 添加/修改变量
    echo "删除原变量"
    wmic ENVIRONMENT where "name='%LocalSystemName%'" delete
    echo "添加变量"
    wmic ENVIRONMENT create name="%LocalSystemName%",username="<system>",VariableValue="%LocalSystemValue%"

    echo. [Debug] 查看变量
    wmic ENVIRONMENT where "name='%LocalSystemName%'" get UserName,VariableValue
    echo. [INFO] setSystemEnvValue === End ===
goto:eof

:: 函数: 永久环境变量-系统环境变量Path
:setSystemEnvPathValue    - setSystemEnvPathValue
    echo. [INFO] setSystemEnvPathValue === Start ===
    echo. [INFO] 永久环境变量-系统环境变量 
    echo. [Debug] %1
    echo. [Debug] %2
    echo. [INFO] 获取变量
    echo. [Debug] 查看变量
    echo. %PATH%
    wmic ENVIRONMENT where "name='path'" get UserName,VariableValue

    echo. [Debug] 查看变量
    echo. %PATH%
    echo. [INFO] setSystemEnvPathValue === End ===
goto:eof

:: 函数: 下载github插件
:downloadPlugins     - downloadPlugins
    echo. [INFO] downloadPlugins === Start ===
    echo. [INFO] downloadPlugins === 1 2 ===
    echo. [Debug] %1
    echo. [Debug] %2

    echo. [INFO] downloadPlugins === TargetFolderPath OriginFolderPath ===
    echo. [Debug] %TargetGitPath%
    echo. [Debug] %OriginFolderPath%

    echo. [INFO] downloadPlugins === LocalOriginFolderPath LocalTargetFolderPath ===
    set TargetGitPath=%1
    set LocalTargetFolderPath=%2
    echo. [Debug] %TargetGitPath%
    echo. [Debug] %LocalOriginFolderPath%
    rem set OldFolderName=%LocalTargetFolderPath%
    rem set NewFolderName=%LocalTargetFolderPath%-%date:~3,4%%date:~8,2%%date:~11,2%%time:~0,2%%time:~3,2%%time:~6,2%
    if exist %LocalTargetFolderPath% (
        echo. [INFO] 已经存在文件夹
        echo. [INFO] downloadPlugins === OldFolderName ===
        rem echo. [Debug]%OldFolderName%
        rem echo. [INFO] downloadPlugins === NewFolderName ===
        rem echo. [Debug] %NewFolderName%
        rem echo. [INFO] 重命名文件夹
        rem mv %OldFolderName% %NewFolderName%
        rem if %ERRORLEVEL% EQU 0 (
        rem     echo. [SUCCESS] 执行成功。
        rem ) else (
        rem     echo. [FAIL] 执行失败。
        rem )
    ) else (
        echo. [INFO] 不存在文件夹
        rem dir
    )
    echo. [INFO] 克隆Git仓库 前准备
    set GitPath=https://github.com/%TargetGitPath% 
    rem set GitPath=https://ghproxy.com/https://github.com/%TargetGitPath% 
    
    echo. [Debug] %GitPath% 
    echo. [INFO] 克隆Git仓库
    git clone --depth 1 %GitPath% %LocalTargetFolderPath%
    if %ERRORLEVEL% EQU 0 (
        echo. [SUCCESS] 执行成功。
    ) else (
        echo. [FAIL] 执行失败。
    )
    echo. [INFO] downloadPlugins === End ===
goto:eof

:: 流程控制函数
:processControlMain
    :: 打印当前系统时间
    echo. Start Runing...
    echo. %date:~0,18%  %time:~0,-3% 
    rem echo. %date:~3,4% 
    rem echo. %date:~8,2% 
    rem echo. %date:~11,2% 
    rem echo. %time:~0,10% 
    rem echo. %time:~0,2% 
    rem echo. %time:~3,2% 
    rem echo. %time:~6,2% 
    :: 此处是你的代码
    :: ...
    echo. [INFO] processControlMain === ThisShellPath ===
    set ThisShellPath=%str%
    echo. [INFO] %ThisShellPath%
    
    rem set OriginFolderPath=%ThisShellPath%nvim
    rem set TargetFolderPath=%HOMEDRIVE%%HOMEPATH%\AppData\Local\nvim
    rem echo. [INFO] %OriginFolderPath%
    rem echo. [INFO] %TargetFolderPath%
    rem call:makeFolderLinkFunc %OriginFolderPath% %TargetFolderPath%
    
    rem # 包管理軟件
    call:downloadPlugins wbthomason/packer.nvim ./plugins/packer.nvim
    rem # 中文文档
    call:downloadPlugins yianwillis/vimcdoc ./plugins/vimcdoc
    rem # 目录树
    call:downloadPlugins kyazdani42/nvim-tree.lua ./plugins/nvim-tree.lua
    rem # 图标
    call:downloadPlugins kyazdani42/nvim-web-devicons ./plugins/nvim-web-devicons
    rem # 主题美化
    call:downloadPlugins tomasr/molokai ./plugins/molokai
    call:downloadPlugins catppuccin/nvim ./plugins/catppuccin
    rem # 状态栏
    rem     # - [feline](https://github.com/feline-nvim/feline.nvim)
    rem     # - [windline 内置主题可以让状态栏动起来](https://github.com/windwp/windline.nvim)
    rem     # - [lualine](https://github.com/nvim-lualine/lualine.nvim)
    call:downloadPlugins nvim-lualine/lualine.nvim  ./plugins/lualine.nvim
    call:downloadPlugins windwp/windline.nvim       ./plugins/windline.nvim

    rem # git
    call:downloadPlugins nvim-lua/plenary.nvim   ./plugins/plenary.nvim
    call:downloadPlugins lewis6991/gitsigns.nvim ./plugins/gitsigns.nvim

    rem # 支持 LSP 状态的 buffer 栏
    call:downloadPlugins akinsho/bufferline.nvim ./plugins/bufferline.nvim

    rem # 搜索时显示条目
    call:downloadPlugins kevinhwang91/nvim-hlslens            ./plugins/nvim-hlslens
    call:downloadPlugins lukas-reineke/indent-blankline.nvim  ./plugins/indent-blankline.nvim

    rem # 自动匹配括号 能够自动补全另一半括号
    call:downloadPlugins windwp/nvim-autopairs ./plugins/nvim-autopairs

    rem # 快速更改单词 快速的更改一个单词为另一个单词的反意
    call:downloadPlugins AndrewRadev/switch.vim  ./plugins/switch.vim

    rem # 快速跳转 快速将单词定位到当前文档的某个词、字、行上
    call:downloadPlugins phaazon/hop.nvim  ./plugins/hop.nvim

    rem # 包裹修改 快速修改外部的包裹，如将 [] 修改为 () 等
    call:downloadPlugins ur4ltz/surround.nvim ./plugins/urround.nvim

    rem # 显示光标下相同词汇
    call:downloadPlugins  RRethy/vim-illuminate ./plugins/vim-illuminate

    rem # 拼写检查器 突出的显示单词的拼写错误
    call:downloadPlugins lewis6991/spellsitter.nvim  ./plugins/spellsitter.nvim

    rem # 自动恢复光标位置
    call:downloadPlugins ethanholz/nvim-lastplace ./plugins/nvim-lastplace

    rem # 自动会话管理
    call:downloadPlugins rmagatti/auto-session ./plugins/auto-session

    rem # 显示滚动条
    call:downloadPlugins petertriho/nvim-scrollbar  ./plugins/nvim-scrollbar
    
    rem # 显示网页色
    call:downloadPlugins norcalli/nvim-colorizer.lua ./plugins/nvim-colorizer.lua

    rem # 内置终端 让默认终端变得既好看又好用
    call:downloadPlugins akinsho/toggleterm.nvim  ./plugins/toggleterm.nvim

    rem # undo tree
    call:downloadPlugins mbbill/undotree  ./plugins/undotree

    call:downloadPlugins dinhhuy258/vim-local-history   ./plugins/vim-local-history 

    rem # 键位绑定器 # 按键导航
    call:downloadPlugins  folke/which-key.nvim  ./plugins/which-key.nvim    

    rem # 模糊查找 外部依赖，fd 和 repgrep , repgrep 插件
    call:downloadPlugins  nvim-telescope/telescope.nvim               ./plugins/telescope.nvim
    call:downloadPlugins  BurntSushi/ripgrep                          ./plugins/ripgrep
    call:downloadPlugins  sharkdp/fd                                  ./plugins/fd
    call:downloadPlugins  nvim-telescope/telescope-live-grep-raw.nvim ./plugins/telescope-live-grep-raw.nvim
    call:downloadPlugins  nvim-telescope/telescope-ui-select.nvim     ./plugins/telescope-ui-select.nvim
    call:downloadPlugins  nvim-telescope/telescope-fzf-native.nvim    ./plugins/telescope-fzf-native.nvim
    call:downloadPlugins  nvim-telescope/telescope-file-browser.nvim  ./plugins/telescope-file-browser.nvim
    call:downloadPlugins  nvim-telescope/telescope-project.nvim       ./plugins/telescope-project.nvim 
    
    rem # 书签
    call:downloadPlugins tom-anders/telescope-vim-bookmarks.nvim   ./plugins/telescope-vim-bookmarks.nvim
    call:downloadPlugins MattesGroeger/vim-bookmarks               ./plugins/vim-bookmarks
 
    rem # 代码注释
    call:downloadPlugins numToStr/Comment.nvim  ./plugins/omment.nvim
    call:downloadPlugins JoosepAlviste/nvim-ts-context-commentstring  ./plugins/nvim-ts-context-commentstring

    rem # 语法高亮
    call:downloadPlugins nvim-treesitter/nvim-treesitter ./plugins/nvim-treesitter
    rem # 彩虹括号
    call:downloadPlugins p00f/nvim-ts-rainbow  ./plugins/nvim-ts-rainbow

    rem # 自动代码补全系列插件 CMP
    rem # - 代码补全核心插件，下面都是增强补全的体验插件
    call:downloadPlugins hrsh7th/nvim-cmp      ./plugins/nvim-cmp 
    rem # 为补全添加类似 vscode 的图标
    call:downloadPlugins onsails/lspkind-nvim  ./plugins/lspkind-nvim
    rem # vsnip 引擎，用于获得代码片段支持
    call:downloadPlugins hrsh7th/vim-vsnip     ./plugins/vim-vsnip 
    rem # 适用于 vsnip 的代码片段源
    call:downloadPlugins hrsh7th/cmp-vsnip     ./plugins/cmp-vsnip
    rem # 替换内置 omnifunc，获得更多补全
    call:downloadPlugins hrsh7th/cmp-nvim-lsp  ./plugins/cmp-nvim-lsp
    rem # 路径补全
    call:downloadPlugins hrsh7th/cmp-path      ./plugins/cmp-path
    rem # 缓冲区补全
    call:downloadPlugins hrsh7th/cmp-buffer  ./plugins/cmp-buffer
    rem # 命令补全
    call:downloadPlugins hrsh7th/cmp-cmdline ./plugins/cmp-cmdline
    rem # 拼写建议
    call:downloadPlugins f3fora/cmp-spell  ./plugins/cmp-spell
    rem # 字典提示
    call:downloadPlugins octaltree/cmp-look  ./plugins/cmp-look
    rem # 提供多种语言的代码片段
    call:downloadPlugins rafamadriz/friendly-snippets ./plugins/friendly-snippets
    rem # 让补全结果的排序更加智能
    call:downloadPlugins lukas-reineke/cmp-under-comparator  ./plugins/cmp-under-comparator
    rem # tabnine 源,提供基于 AI 的智能补全
    call:downloadPlugins tzachar/cmp-tabnine ./plugins/cmp-tabnin
    

    rem # 快速且完全可定制的 neovim 迎宾器。
    call:downloadPlugins goolord/alpha-nvim  ./plugins/alpha-nvim      

    rem # 自动切换到项目根目录
    call:downloadPlugins airblade/vim-rooter  ./plugins/vim-rooter

    call:downloadPlugins lunarvim/colorschemes ./plugins/colorschemes

    call:downloadPlugins dinhhuy258/vim-local-history  ./plugins/vim-local-history 
    rem # 窗口选择器
    call:downloadPlugins t9md/vim-choosewin  ./plugins/vim-choosewin

    call:downloadPlugins projekt0n/github-nvim-theme  ./plugins/github-nvim-theme


    call:downloadPlugins michaelb/sniprun ./plugins/sniprun


    rem call:downloadPlugins junegunn/fzf ./plugins/fzf
    rem call:downloadPlugins junegunn/fzf.vim ./plugins/fzf.vim

    rem # 浮动ranger
    call:downloadPlugins kevinhwang91/rnvimr  ./plugins/rnvimr 
    rem call:downloadPlugins francoiscabrol/ranger.vim  ./plugins/ranger.vim
    rem call:downloadPlugins rbgrouleff/bclose.vim  ./plugins/bclose.vim
    rem call:downloadPlugins lmburns/lf.nvim ./plugins/lf.nvim
    rem call:downloadPlugins ptzz/lf.vim ./plugins/lf.vim
    rem call:downloadPlugins voldikss/vim-floaterm  ./plugins/vim-floaterm
    

    rem call:downloadPlugins windwp/nvim-autopairs ./plugins/nvim-autopairs 
    call:downloadPlugins terrortylor/nvim-comment ./plugins/nvim-comment

    rem # LSP
    call:downloadPlugins williamboman/nvim-lsp-installer ./plugins/nvim-lsp-installer
    call:downloadPlugins ray-x/lsp_signature.nvim  ./plugins/lsp_signature.nvim 
    call:downloadPlugins neovim/nvim-lspconfig     ./plugins/nvim-lspconfig
    call:downloadPlugins kosayoda/nvim-lightbulb   ./plugins/nvim-lightbulb
    call:downloadPlugins ray-x/lsp_signature.nvim  ./plugins/lsp_signature.nvim

    rem # cmp
    rem call:downloadPlugins hrsh7th/cmp-nvim-lsp ./plugins/cmp-nvim-lsp
    rem call:downloadPlugins hrsh7th/cmp-buffer   ./plugins/cmp-buffer
    rem call:downloadPlugins hrsh7th/cmp-path     ./plugins/cmp-path
    rem call:downloadPlugins hrsh7th/cmp-cmdline  ./plugins/cmp-cmdline
    rem call:downloadPlugins hrsh7th/nvim-cmp     ./plugins/nvim-cmp
    rem call:downloadPlugins hrsh7th/vim-vsnip    ./plugins/vim-vsnip
    rem call:downloadPlugins rafamadriz/friendly-snippets ./plugins/friendly-snippets
    rem call:downloadPlugins onsails/lspkind-nvim         ./plugins/lspkind-nvim 
    
    call:downloadPlugins sindrets/diffview.nvim          ./plugins/diffview.nvim
    call:downloadPlugins Shatur/neovim-session-manager   ./plugins/neovim-session-manager

    rem # 主题
    call:downloadPlugins projekt0n/github-nvim-theme ./plugins/github-nvim-theme

    rem # 输入法自动切换 mac
    rem call:downloadPlugins lyokha/vim-xkbswitch  ./plugins/vim-xkbswitch 
    rem call:downloadPlugins rlue/vim-barbaric     ./plugins/vim-barbaric

    rem call:setUserEnvValue "XIELF"  %TargetFolderPath%
    rem call:setUserEnvPathValue "XIELF"

    :: 打印当前系统时间
    echo  %date:~0,18%  %time:~0,-3% 
    echo. The End.
goto:eof

::--------------------------------------------------------
::-- 函数部分结束
::--------------------------------------------------------
```

```
::判断上一条命令执行结果的代码,"成功"用0表示 . 失败"用1表示.
@echo off
net user
IF %ERRORLEVEL% == 0 echo net user 执行成功了!
pause

:: 参考资料
:: - [Windows中的硬链接和软链接（hard link 和 Symbolic link）](https://www.cnblogs.com/Naylor/p/7597869.html)


